/**
 * 项目示例-表单验证规则
 * Date 2023-5-25 09:33:56
 */

import type { FormRules } from 'element-plus'
import { reactive } from 'vue'

export const rules = reactive<FormRules>({
  hazardName: [{
    required: true,
    message: '请输入隐患名称',
    trigger: 'blur'
  }],
  hazardSort: [{
    required: true,
    message: '请选择隐患分类',
    trigger: 'change'
  }],
  hazardRank: [{
    required: true,
    message: '请选择隐患等级',
    trigger: 'blur'
  }],
  time: [{
    required: true,
    message: '请选择发现时间',
    trigger: 'change'
  }],
  source: [{
    required: true,
    message: '请选择问题来源',
    trigger: 'change'
  }],
  responsibilityUnit: [{
    required: true,
    message: '请选择责任单位',
    trigger: 'change'
  }],
  responsibilityPhone: [{
    required: true,
    message: '请填写完整手机号',
    trigger: 'change'
  }]
})
